package cate.game.pvp.guildwar.data.rank;

import cate.game.role.res.guild.po.basic.GuildBanner;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass("公会战冠军")
public class GWChampion {

	@NoteField("区服id")
	public int srvId;

	@NoteField("公会名字")
	public String name;

	@NoteField("公会旗帜")
	public GuildBanner guildBanner;

	@NoteField("点赞数")
	public int admire;

	public static GWChampion of(int srvId, String name, GuildBanner guildBanner) {
		GWChampion champion = new GWChampion();
		champion.srvId = srvId;
		champion.name = name;
		champion.guildBanner = guildBanner != null ? guildBanner.copy() : null;
		return champion;
	}
}
